/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package doan;

import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author Windows 7
 */
public class Form2_2 extends javax.swing.JFrame {

    /**
     * Creates new form Form2_2
     */
    public Form2_2() {
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel1 = new javax.swing.JPanel();
        bt22_Delete = new javax.swing.JButton();
        bt22_DeleteAll = new javax.swing.JButton();
        jButton1 = new javax.swing.JButton();
        bt22_Logout = new javax.swing.JButton();
        jLabel1 = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setMinimumSize(new java.awt.Dimension(800, 600));
        getContentPane().setLayout(null);

        jPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        bt22_Delete.setFont(new java.awt.Font("Times New Roman", 2, 18)); // NOI18N
        bt22_Delete.setIcon(new javax.swing.ImageIcon(getClass().getResource("/doan/1392943852_delete.png"))); // NOI18N
        bt22_Delete.setText("Delete");
        jPanel1.add(bt22_Delete, new org.netbeans.lib.awtextra.AbsoluteConstraints(540, 330, 240, -1));

        bt22_DeleteAll.setFont(new java.awt.Font("Times New Roman", 2, 18)); // NOI18N
        bt22_DeleteAll.setText("Delete All");
        jPanel1.add(bt22_DeleteAll, new org.netbeans.lib.awtextra.AbsoluteConstraints(550, 420, 230, 30));

        jButton1.setFont(new java.awt.Font("Times New Roman", 2, 18)); // NOI18N
        jButton1.setText("Cancel");
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
            }
        });
        jPanel1.add(jButton1, new org.netbeans.lib.awtextra.AbsoluteConstraints(650, 490, -1, -1));

        bt22_Logout.setFont(new java.awt.Font("Times New Roman", 2, 18)); // NOI18N
        bt22_Logout.setText("Log out");
        bt22_Logout.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bt22_LogoutActionPerformed(evt);
            }
        });
        jPanel1.add(bt22_Logout, new org.netbeans.lib.awtextra.AbsoluteConstraints(650, 540, -1, -1));

        jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/doan/mslide2_2.jpg"))); // NOI18N
        jPanel1.add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 800, 600));

        getContentPane().add(jPanel1);
        jPanel1.setBounds(0, 0, 800, 600);

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void bt22_LogoutActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bt22_LogoutActionPerformed
        // TODO add your handling code here:
        this.setVisible(false);
        Form1 t2 = null;
        try {
            t2 = new Form1();
        } catch (Exception ex) {
            Logger.getLogger(Form2_2.class.getName()).log(Level.SEVERE, null, ex);
        }
        t2.setVisible(true);
    }//GEN-LAST:event_bt22_LogoutActionPerformed

    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
        // TODO add your handling code here:
        this.setVisible(false);
        Form2 t=new Form2();
        t.setVisible(true);
    }//GEN-LAST:event_jButton1ActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(Form2_2.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(Form2_2.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(Form2_2.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(Form2_2.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new Form2_2().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton bt22_Delete;
    private javax.swing.JButton bt22_DeleteAll;
    private javax.swing.JButton bt22_Logout;
    private javax.swing.JButton jButton1;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JPanel jPanel1;
    // End of variables declaration//GEN-END:variables
}
